home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 220 / 220.xpi / chrome / flashgot.jar / content / flashgot / flashgotOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2010-01-24  |  10.2 KB  |  262 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.  
  4.     FlashGot - a Firefox extension for external download managers integration
  5.     Copyright (C) 2004-2009 Giorgio Maone - g.maone@informaction.com
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation; either version 2 of the License, or
  10.     (at your option) any later version.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20.  
  21. ***** END LICENSE BLOCK ***** -->
  22.  
  23. <?xml-stylesheet href="chrome://flashgot/skin/browser.css" type="text/css"?>
  24.  
  25. <!DOCTYPE overlay [
  26. <!ENTITY % flashgot SYSTEM "chrome://flashgot/locale/flashgot.dtd" >
  27. %flashgot;
  28. <!ENTITY % flashgotFB  SYSTEM "chrome://flashgot/content/en-US/flashgot.dtd" >
  29. %flashgotFB;
  30. ]>
  31.  
  32. <overlay id="flashgotOverlay" 
  33.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  34.  
  35. <script type="application/x-javascript" src="flashgotCommon.js"/>
  36. <script type="application/x-javascript" src="flashgotOverlay.js"/>
  37.  
  38.   <menu id="flashgot-menu" label="FlashGot" 
  39.     class="menu-iconic flashgot-icon-lnk"
  40.    >
  41.   <menupopup id="flashgot-menu-popup" 
  42.     onpopupshowing="gFlashGot.prepareToolsMenu(event)"
  43.     >
  44.         <menuitem id="flashgot-main-menuitem-sel"
  45.         label="&flashgotSel;"  
  46.         accesskey="&flashgotSel.accesskey;"
  47.         oncommand="gFlashGot.delayCmd('Sel')"
  48.         key="flashgot-sel-key"
  49.         class="menuitem-iconic flashgot-icon-sel"
  50.         disabled="true"
  51.     />
  52.     <menuitem id="flashgot-main-menuitem-all"
  53.         label="&flashgotAll;" 
  54.         accesskey="&flashgotAll.accesskey;"
  55.         oncommand="gFlashGot.delayCmd('All')"
  56.         key="flashgot-all-key"
  57.         class="menuitem-iconic flashgot-icon-all"
  58.         disabled="true"
  59.         />
  60.     <menuitem id="flashgot-main-menuitem-tabs"
  61.         label="&flashgotTabs;" 
  62.         accesskey="&flashgotTabs.accesskey;"
  63.         oncommand="gFlashGot.delayCmd('Tabs')"
  64.         key="flashgot-tabs-key"
  65.         class="menuitem-iconic flashgot-icon-tabs"
  66.         disabled="true"
  67.         />
  68.     <menuitem id="flashgot-main-menuitem-media"
  69.         label="&flashgotMedia;" 
  70.         oncommand="gFlashGot.downloadMedia()"
  71.         key="flashgot-media-key"
  72.         class="menuitem-iconic flashgot-icon-media"
  73.         disabled="true"
  74.         />
  75.     <menuitem id="flashgot-main-menuitem-buildGallery"
  76.       label="&flashgotBuildGallery;"
  77.       class="menuitem-iconic flashgot-icon-buildGallery" 
  78.       oncommand="gFlashGot.buildGallery()"
  79.       disabled="true"
  80.     />
  81.     <menuseparator id="flashgot-main-sep-buildGallery"  />
  82.        <menuitem id="flashgot-main-menuitem-opt-autoStart"
  83.         label="&flashgotAutostart;"
  84.         type="checkbox"
  85.         oncommand="gFlashGot.switchOption('autoStart')"
  86.       />
  87.       <menuitem id="flashgot-main-menuitem-opt-includeImages"
  88.         label="&includeImages.label;"
  89.         type="checkbox"
  90.         oncommand="gFlashGot.switchOption('includeImages')"
  91.       />
  92.       <menuitem id="flashgot-main-menuitem-opts"
  93.         label="&flashgotMoreOpts;"
  94.         oncommand="gFlashGot.openOptionsDialog()"
  95.         class="menuitem-iconic flashgot-icon-opts"  
  96.       />
  97.       <menuseparator id="flashgot-main-sep-about" />
  98.       <menuitem id="flashgot-main-about" 
  99.         label="&flashgotAbout;"
  100.         oncommand="gFlashGot.openAboutDialog()"
  101.       />
  102.   </menupopup>
  103.   </menu>
  104.  
  105.  
  106.   <toolbarpalette id="BrowserToolbarPalette">
  107.     <toolbarbutton id="flashgot-tbb-all" 
  108.       oncommand="event.target != this || window.setTimeout(function() { gFlashGot.downloadSel() || gFlashGot.downloadAll(); },0);"
  109.       tooltiptext="&flashgotSel; | &flashgotAll;" 
  110.       class="toolbarbutton-1"
  111.       label="FlashGot"
  112.       type="menu-button"
  113.    >
  114.     <menupopup id="flashgot-tbb-menupopup-options" onpopupshowing="gFlashGot.prepareOptsMenu(event.target)">
  115.         <menuitem id="flashgot-tbb-menuitem-nodms" hidden="true"
  116.           label="&flashgotNoDMS;"
  117.           oncommand="gFlashGotService.showDMSReference()"
  118.           />
  119.         <menuseparator />
  120.          <menuitem id="flashgot-tbb-menuitem-opt-autoStart"
  121.           label="&flashgotAutostart;"
  122.           type="checkbox"
  123.           oncommand="gFlashGot.switchOption('autoStart')"
  124.           />
  125.         <menuitem id="flashgot-tbb-menuitem-opt-includeImages"
  126.           label="&includeImages.label;"
  127.           type="checkbox"
  128.           oncommand="gFlashGot.switchOption('includeImages')"
  129.           />
  130.         <menuitem id="flashgot-tbb-menuitem-opts" 
  131.           label="&flashgotMoreOpts;"
  132.           oncommand="gFlashGot.openOptionsDialog()"
  133.           class="menuitem-iconic flashgot-icon-opts"  
  134.         />
  135.         <menuseparator />
  136.         <menuitem  id="flashgot-tbb-about"
  137.           label="&flashgotAbout;"
  138.           oncommand="gFlashGot.openAboutDialog()"
  139.         />
  140.         <menuitem id="flashgot-tbb-homepage"
  141.               label="&flashgotVisitHomepage;"
  142.               oncommand="gFlashGot.browseHomePage()"
  143.             />
  144.       </menupopup>
  145.    </toolbarbutton>
  146.   </toolbarpalette>
  147.  
  148.  
  149.   <popup id="contentAreaContextMenu">
  150.     <menu id="flashgot-submenu" hidden="true" persist="hidden"
  151.       label="FlashGot" class="menu-iconic flashgot-icon-lnk"
  152.       accesskey="&flashgotLink.accesskey;"
  153.       insertbefore="context-sep-selectall,context-sep-stop,context-sep-copylink"
  154.       >
  155.       <menupopup>
  156.          <menuseparator id="flashgot-submenu-anchor" hidden="true" />
  157.          <menuitem id="flashgot-menuitem-it"
  158.           label="&flashgotLink;" 
  159.           accesskey="&flashgotLink.accesskey;"
  160.           oncommand="gFlashGot.downloadPopupLink()"
  161.           key="flashgot-link-key"
  162.           class="menuitem-iconic flashgot-icon-lnk"
  163.         />
  164.         <menuitem id="flashgot-menuitem-sel"
  165.           label="&flashgotSel;"  
  166.           accesskey="&flashgotSel.accesskey;"
  167.           oncommand="gFlashGot.delayCmd('Sel')"
  168.           key="flashgot-sel-key"
  169.           class="menuitem-iconic flashgot-icon-sel"
  170.         />
  171.         <menuitem id="flashgot-menuitem-all" 
  172.             label="&flashgotAll;" 
  173.             accesskey="&flashgotAll.accesskey;"
  174.             oncommand="gFlashGot.delayCmd('All')"
  175.             key="flashgot-all-key"
  176.             class="menuitem-iconic flashgot-icon-all"
  177.           />
  178.         <menuitem id="flashgot-menuitem-tabs"
  179.             label="&flashgotTabs;" 
  180.             accesskey="&flashgotTabs.accesskey;"
  181.             oncommand="gFlashGot.delayCmd('Tabs')"
  182.             key="flashgot-tabs-key"
  183.             class="menuitem-iconic flashgot-icon-tabs"
  184.           />
  185.         <menuitem id="flashgot-menuitem-media" 
  186.             label="&flashgotMedia;" 
  187.            oncommand="gFlashGot.downloadMedia()"
  188.             key="flashgot-media-key"
  189.             class="menuitem-iconic flashgot-icon-media"
  190.           />
  191.         
  192.         <menuitem id="flashgot-menuitem-buildGallery"
  193.           label="&flashgotBuildGallery;"
  194.           class="menuitem-iconic flashgot-icon-buildGallery"  
  195.           oncommand="gFlashGot.buildGallery()"
  196.         />
  197.         <menu id="flashgot-menu-options"
  198.           class="menu-iconic flashgot-icon-opts"  
  199.           label="&flashgotOptions;" >
  200.           <menupopup id="flashgot-menupopup-options" onpopupshowing="gFlashGot.prepareOptsMenu(event.target)">
  201.             <menuitem id="flashgot-ctx-menuitem-nodms" hidden="true"
  202.               label="&flashgotNoDMS;"
  203.               oncommand="gFlashGotService.showDMSReference()"
  204.               />
  205.             <menuseparator id="flashgot-ctx-sep-nodms" />
  206.              <menuitem id="flashgot-ctx-menuitem-opt-autoStart"
  207.               label="&flashgotAutostart;"
  208.               type="checkbox"
  209.               oncommand="gFlashGot.switchOption('autoStart')"
  210.               />
  211.             <menuitem id="flashgot-ctx-menuitem-opt-includeImages"
  212.               label="&includeImages.label;"
  213.               type="checkbox"
  214.               oncommand="gFlashGot.switchOption('includeImages')"
  215.               />
  216.             <menuitem id="flashgot-ctx-menuitem-opts"
  217.               label="&flashgotMoreOpts;"
  218.               oncommand="gFlashGot.openOptionsDialog()"
  219.             />
  220.             <menuseparator id="flashgot-ctx-sep-about" />
  221.             <menuitem id="flashgot-ctx-menuitem-about"
  222.               label="&flashgotAbout;"
  223.               oncommand="gFlashGot.openAboutDialog()"
  224.             />
  225.             <menuitem id="flashgot-ctx-homepage"
  226.               label="&flashgotVisitHomepage;"
  227.               oncommand="gFlashGot.browseHomePage()"
  228.             />
  229.           </menupopup>
  230.         </menu>
  231.       </menupopup>
  232.     </menu>  
  233.     
  234.     <menuseparator id="flashgot-context-separator" hidden="true"
  235.       insertbefore="context-sep-selectall,context-sep-stop,context-sep-copylink" /> 
  236.     <menuseparator id="flashgot-context-separator2" hidden="true" 
  237.       insertbefore="context-sep-selectall,context-sep-stop,context-sep-copylink" />   
  238.   
  239.   </popup>
  240.   
  241.   <statusbar id="status-bar">
  242.     <statusbarpanel id="flashgot-progresspanel" insertafter="flashgot-statusbarpanel,statusbar-progresspanel,statusbar-display" 
  243.       class="statusbarpanel-progress" collapsed="true">
  244.       <label plain="true" value="FlashGot" />
  245.       <progressmeter id="flashgot-progressmeter" class="progressmeter-status" mode="normal" value="0" />
  246.       <iframe id="_flashgot_iframe" style="display: none" />
  247.     </statusbarpanel>
  248.     
  249.     <statusbarpanel id="flashgot-media-status" insertafter="statusbar-display"
  250.         class="statusbarpanel-iconic flashgot-icon-media"
  251.         hidden="true"
  252.         oncommand="gFlashGot.downloadMedia()"
  253.         context="flashgot-media-popup"
  254.         mousethrough="never"
  255.     />
  256.    
  257.    <popup id="flashgot-media-popup" onpopupshowing="return gFlashGot.prepareMediaMenu(this)" />
  258.      
  259.   </statusbar>
  260.   
  261. </overlay>
  262.